home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.MDIForm mdimain
- AutoShowChildren= 0 'False
- BackColor = &H8000000C&
- Caption = "Easy Writer"
- ClientHeight = 9180
- ClientLeft = 165
- ClientTop = 735
- ClientWidth = 12330
- LinkTopic = "MDIForm1"
- StartUpPosition = 3 'Windows-Standard
- Begin VB.Menu mnuFile
- Caption = "&File"
- Begin VB.Menu mnuNew
- Caption = "New Window"
- Shortcut = ^N
- End
- Begin VB.Menu mnuClose
- Caption = "Close all Windows"
- End
- Begin VB.Menu mnuExit
- Caption = "Exit"
- Shortcut = ^E
- End
- End
- Begin VB.Menu mnuWindows
- Caption = "&Windows"
- WindowList = -1 'True
- Begin VB.Menu mnuStyle1
- Caption = "Style 1"
- End
- Begin VB.Menu mnuStyle2
- Caption = "Style 2"
- End
- End
- Attribute VB_Name = "mdimain"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Public formcounter As Long
- Private Sub MDIForm_Load()
- formcounter = 0
- End Sub
- Private Sub mnuClose_Click()
- Dim F As Form
- For Each F In Forms
- If TypeOf F Is frmWriter Then
- Unload F
- End If
- Next
- End Sub
- Private Sub mnuExit_Click()
- Dim Answer
- Dim cancel
- Answer = MsgBox(Prompt:="Do you really want to quit?", _
- Title:="Question", _
- Buttons:=vbYesNo + vbQuestion)
- If Answer = vbYes Then
- End
- Else
- cancel = True
- End If
- End Sub
- Private Sub mnuNew_Click()
- Dim F As frmWriter
- Dim filename
- If formcounter > 0 Then
- Set F = New frmWriter
- Set F = frmWriter
- End If
- F.Show
- F.Caption = filename
- formcounter = formcounter + 1
- End Sub
- Private Sub mnuStyle1_Click()
- mdimain.Arrange vbTileVertical
- End Sub
- Private Sub mnuStyle2_Click()
- mdimain.Arrange vbCascade
- End Sub
-